package com.quickask.idao;

import com.quickask.common.Pager;
import com.quickask.entity.AsknowQuestionLocationSetEntity;

import java.util.Map;

/**
 * Created by NaSa on 2015/10/2.
 */
public interface IQuestionLocationSetDao {

    /**
     * 添加问题位置实体
     * @param asknowQuestionLocationSetEntity
     */
    public void addQuestionLocation(AsknowQuestionLocationSetEntity asknowQuestionLocationSetEntity);

    /**
     *
     * @param pageNo 页码
     * @param pageSize 页大小
     * @param latitude 纬度
     * @param longitude 经度
     * @param blockCode 区号
     * @return
     */
    public Pager<AsknowQuestionLocationSetEntity> getQuestionPagers(int pageNo, int pageSize, double latitude, double longitude, String blockCode);

    /**
     *
     * @param pageNo 页码
     * @param pageSize 页大小
     * @param properties (latitude,longitude,blockCode...)
     * @return
     */
    public Pager<AsknowQuestionLocationSetEntity> getQuestionPagersByGeohash(int pageNo, int pageSize,Map<String,Object> properties);

}
